<!-- 
20071226 1500: Eric Kao, 將 DWRUtil 改為 dwr.util<br>
20071226 1326: Eric Kao was created.
-->

<%@ page contentType="text/html; charset=UTF-8" %>
<html>
<head>
<script type='text/javascript' src='../dwr/interface/basicUtilJS.js'></script>
<script type='text/javascript' src='../dwr/engine.js'></script>
<script type='text/javascript' src='../dwr/util.js'></script>

<script type="text/javascript" language="javascript">

<!-- add line, 只要加入這一行, 就會有右上角 LoadingMessage 出現 -->
DWRUtil.useLoadingMessage();

function updateName()
{
		var name = dwr.util.getValue( "nameId" );
		
		//delay time: 10 seconds
    basicUtilJS.getHelloNameDelay( name, 2, loadInfo );
}
function loadInfo( data )
{
    dwr.util.setValue( 'reply', data );
}

</script>

<title>
Hello World
</title>
</head>
<body bgcolor="#ffffff">
<p>右上角會出現紅色的 message </p>
<p>
		<input type="text" id="nameId" /><br>
    <input type="button" value="執行" onclick="updateName()"/><br>
    從 Server 傳回的字串:<span id="reply"></span>
</p>

</body>
</html>
